package com.gjt.http;

import java.net.ResponseCache;

/**
 * Created with Intel IDEA.
 *
 * @Auther: gjt
 * @Date: 2024/3/27 18:48
 */
public class test {
    public static void main(String[] args) {
        // 安装缓存 HttpURLConnection 就会一直用这个缓存 每个资源都会保存到HashMap中直到他过期
        ResponseCache.setDefault(new MemoryCache());
    }
}
